package lhdx9;

public class Warcraft extends Aircraft {
    private int danT;
    public Warcraft(String name, int deadLoad, int altitude,int danT) {
        super(name, deadLoad, altitude);
        this.danT=danT;
    }

    public int getDanT() {
        return danT;
    }

    public void setDanT(int danT) {
        this.danT = danT;
    }
    public void takeoff(){
        System.out.println(getName()+"飞机可以发射"+danT+"枚导弹！");
        super.takeoff();
    }
}
